import {workAskServiceList} from "@/api/workorder/consultCustomerService";

export default {
  hasPage: true,
  // hasCheck: true,
  request: (params) => {
    return workAskServiceList(params)
  },
  dataParse: (res) => {
    const resData = res.data.data || {}
    const data = {
      list: resData.rows,
      total: resData.total
    }
    return data
  },
  columns: [
    {
      prop: 'xmbzNo',
      label: '后台单号',
    },
    {
      prop: 'platformOrderId',
      label: '平台单号',
    },
    {
      prop: 'receiverPhone',
      label: '收货人手机号',
    },
    {
      prop: 'bookerPhone',
      label: '预订人手机号',
    },
    {
      prop: 'typeName',
      label: '咨询类型',
    },
    {
      prop: 'content',
      label: '协助内容',
    },
    {
      prop: 'extJson',
      label: '图片附图',
      isSlot: true,
    },
    {
      prop: 'dispose',
      label: '处理人',
    },
    {
      prop: 'disposeState',
      label: '处理状态',
      isSlot: true,
    },
    {
      prop: 'resultContent',
      label: '处理反馈内容',
    },
    {
      prop: 'operator',
      label: '创建人',
    },
    {
      prop: 'createTime',
      label: '创建时间',
    },
    {
      prop: 'operate',
      label: '操作',
      width: '220px',
      isSlot: true,
    }
  ]
}